package com.bango.android;

final class BangoPoster implements Runnable
{
	private BangoAgentImpl _bangoAgent;
	private boolean _notCurrentProfile;
	private boolean _closeDatabase;

	BangoPoster(BangoAgentImpl bangoAgent)
	{
		this(bangoAgent, false, true);
	}

	BangoPoster(BangoAgentImpl bangoAgent, boolean notCurrentProfile, boolean closeDatabase)
	{
		super();
		_bangoAgent = bangoAgent;
		_notCurrentProfile = notCurrentProfile;
		_closeDatabase = closeDatabase;
	}

	public final void run()
	{
		_bangoAgent.bangoLogger.PostEvents(_notCurrentProfile, _closeDatabase);
	}
}
